package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.TicketsDto;
import com.zf.yichat.model.StUserTicket;
import org.apache.ibatis.annotations.Param;

public interface StUserTicketMapper extends FsMapper<StUserTicket> {

    /**
     * 根据唯一码查询用户门票
     * @param ticketCode
     * @return
     */
    StUserTicket queryUserTicketByCode(@Param("userId") Long userId, @Param("ticketCode") String ticketCode);

    /**
     * 查询用户门票详细信息
     * @param userTicketId
     * @return
     */
    TicketsDto queryUserTicketInfo(@Param("userTicketId") Integer userTicketId);
}